package cn.walls1717.wallsmall.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.walls1717.wallsmall.common.utils.R;

/**
 * 用户Feign
 *
 * @author walls1717
 * @since 2022/11/19 14:55
 **/
@FeignClient("wallsmall-member")
public interface MemberFeignService {

    /**
     * 根据addressId查询地址信息
     *
     * @param id addressId
     * @return 地址信息
     */
    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R getAddressById(@PathVariable("id") Long id);
}
